﻿<%@ Page AutoEventWireup="true" CodeBehind="Admin_User.aspx.cs" Inherits="V5_EShop.Admin.User.User_Index"
    Language="C#" MasterPageFile="~/Includes/AdminMaster.Master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="title">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="content">
    <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
        <tr>
            <td class="header">
                位置导航：<a class="list_link" href="<%=this.ResolveUrl("~/") %>Admin/Admin_Index.aspx"
                    target="main">首页</a> >> 用户管理
            </td>
        </tr>
        <tr>
            <td>
                <a href="?">用户管理</a> | <a href="?Action=edit">添加用户</a>
            </td>
        </tr>
    </table>
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" CssClass="tablelist rowlist tableheader"
                GridLines="None" OnRowCommand="gvList_RowCommand">
                <HeaderStyle CssClass="headertext" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkitem" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="UserName" HeaderText="会员账号" />
                    <asp:BoundField DataField="TrueName" HeaderText="真实姓名" />
                    <asp:BoundField DataField="UserEmail" HeaderText="电子邮件" />
                    <asp:BoundField DataField="QQ" HeaderText="QQ号码" />
                    <asp:BoundField HeaderText="积分" DataField="UserScore" />
                    <asp:BoundField DataField="RegDate" HeaderText="注册时间" />
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%# Eval("IsLock").ToString()=="1"?"锁定":"正常" %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <a href='../ProductExpand/Admin_ProductUserAddress.aspx?UserID=<%#Eval("ID") %>'>管理用户收货地址</a>
                            |
                            <asp:LinkButton ID="LinkButton1" CommandArgument='<%# Bind("ID") %>' CommandName="go"
                                runat="server">修改</asp:LinkButton>
                            |
                            <asp:LinkButton ID="LinkButton2" CommandArgument='<%# Bind("ID") %>' CommandName="del"
                                runat="server" OnClientClick="return confirm('你确定要删除吗?')">删除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                            FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                            OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                            PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                            TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table border="0" cellpadding="0" cellspacing="0" class="tablelist rowlist">
                <tr>
                    <td colspan="2" class="header">
                        <asp:Label ID="lblTitle" runat="server" Text="添加用户"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        用户名：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        密 码：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserPassword" runat="server" TextMode="Password"></asp:TextBox>
                        不修改可以为空!
                    </td>
                </tr>
                <tr>
                    <td>
                        密 码(确认)：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserPassword2" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        e-mail：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserEmail" runat="server" Width="258px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        找回密码问题：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserQuestion" runat="server" Width="257px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        找回密码答案：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserAnswer" runat="server" Width="254px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        积分：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserScore" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        ICQ：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserICQ" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        所属会员组：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlGroupID" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:HiddenField ID="txtID" runat="server" Value="0" />
                        <asp:Button ID="btnUserSave" runat="server" OnClick="btnUserSave_Click" Text="添加保存"
                            CssClass="ds-btn ds-btn-ok" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
